package com.hzqy.web.ac.epg;

import com.hzqy.service.epg.AcDrawServiceBean;
import com.hzqy.web.vo.epg.AcDrawButtonVo;
import com.hzqy.web.vo.epg.AcDrawChartVo;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

import javax.annotation.Resource;

@Controller
@RequestMapping("/draw")
public class AcDrawAction {
	protected final Logger LOG = LoggerFactory.getLogger(getClass());
	@Resource
	private AcDrawServiceBean acSevice;


	/***
	 * @param f_adc_activityid 活动id
	 * 	f_adc_type   类型：1：活动首页，2：中奖列表页；3：活动详情页
	 * @return 
	 */
	@RequestMapping(value = "/chartList")
	@ResponseBody
	public Object selectChartList(AcDrawChartVo adcvo) {
		Map<String, Object> map = null;
		map = acSevice.selectChartList(adcvo);
		return map;
	}
	
	/***
	 * @param f_adb_draw_id   对应页面
	 * @return
	 */
	@RequestMapping(value = "/buttonList")
	@ResponseBody
	public Object selectButtonList(AcDrawButtonVo adbvo) {
		Map<String, Object> map = null;
		map = acSevice.selectButtonList(adbvo);
		return map;
	}
}